package com.example.administrator.myapplication.flexibility;

import android.graphics.Color;
import android.os.Bundle;

import android.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.administrator.myapplication.R;


public class flexibility_main_Fragment extends Fragment {
    private Toolbar toolbar;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_flexibility_main_, container, false);
        toolbar= (Toolbar) getActivity().findViewById(R.id.toolbar_flexibility);
        toolbar.setNavigationIcon(R.mipmap.custom_back);
        toolbar.setTitle("柔韧性适能");
        toolbar.setTitleMarginStart(100);
        toolbar.setTitleTextColor(Color.parseColor("#ffffff"));
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                getActivity().finish();
            }
        });
        return view;
    }


}
